package com.hmy.infrastructure.api.client.aliemas;


import com.hmy.ccp.common.result.FeignResult;
import com.hmy.infrastructure.api.bo.request.aliemaspush.MessageAccountPushRequest;
import com.hmy.infrastructure.api.bo.request.aliemaspush.MessageDevicePushRequest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient("hmy-ccp-infrastructure")
public interface EmasPushClient {

    @PostMapping("/feign/emas/sendMessageByDevices")
    FeignResult<Boolean> sendMessageByDevices(MessageDevicePushRequest messageDevicePushRequest);

    @PostMapping("/feign/emas/sendMessageByAccounts")
    FeignResult<Boolean> sendMessageByAccounts(MessageAccountPushRequest messageAccountPushRequest);

}
